package de.bht.fb6.cg1.exercise4;

import org.lwjgl.opengl.GL11;

public class Texture extends Koord {

	public Texture(double[] koord) {
		super(koord);
	}

	public void draw() {
		if (size() == 1)
			GL11.glTexCoord1d(koords[0]);
		else if (size() == 2)
    		GL11.glTexCoord2d(koords[0], koords[1]);
    	else if (size() == 3)
    		GL11.glTexCoord3d(koords[0], koords[1], koords[2]);
    	else if (size() == 4)
    		GL11.glTexCoord4d(koords[0], koords[1], koords[2], koords[3]);
	}


}
